package com.jiazhong.setter;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Auther:shuXin
 */
public class TestBook {
    @Test
    public void test01(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("bean-fact.xml");
        Book book = (Book) ac.getBean("book");
        System.out.println(book);
    }
}
